import http from "./http";

/**
 * 首页请求
 * @param params 
 * @returns 
 */
export async function index(params: object) {
    const response = await http({
        url: 'a/test.php',
        method: 'get',
        params: params
    })
    return response.data
}

/**
 * 搜索请求
 * @param params 
 * @returns 
 */
export async function search(params: object) {
    const response = await http({
        url: '',
        method: 'get',
        params: params
    })
    return response.data
}

/**
 * 换链请求
 * @param params 
 * @returns 
 */
export async function get_url(params:object) {
    const response = await http({
        url: '',
        method: 'post',
        data: params
    })
    return response.data
}